MailPoet\Newsletter\NewslettersRepository S

Total Complexity 30
Dependencies 25
Dependents 42
Total lines 545
Lines of code 424
Logical lines of code 104
Comment lines 58
Methods 21
Properties 2

Methods 21

Method Rating Maintainability Complexity Lines of code
bulkDelete()
A
36 3 96
getAnalytics()
S
43 3 48
bulkRestore()
S
50 2 32
bulkTrash()
S
50 2 30
getArchives()
S
52 2 26
findActiveByTypeAndGroup()
S
56 2 18
getStandardNewsletterSentCount()
S
58 2 16
getScheduledStandardEmailsAndActiveAutomaticEmails()
S
53 1 25
findSendingNotificationHistoryWithoutPausedTask()
S
58 1 17
getCountOfActiveAutomaticEmailsForEvent()
S
58 1 16
findActiveByTypes()
S
61 1 14
findDraftByTypes()
S
61 1 14
getCountForStatusAndTypes()
S
62 1 13
getStandardNewsletterList()
S
62 1 13
prefetchOptions()
S
64 1 11
prefetchSegments()
S
64 1 11
__construct()
S
73 1 5
getEntityClassName()
S
82 1 3
getCorruptNewsletters()
S
78 1 3
setAsCorrupt()
S
74 1 5
fetchChildrenIds()
S
67 1 8